package com.dbs;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

//开启Config Server
@EnableConfigServer
@SpringBootApplication
// 注册到服务注册中心
@EnableDiscoveryClient
public class ConfigServerApplication {

	public static void main(String[] args) {
		new SpringApplicationBuilder(ConfigServerApplication.class).web(true).run(args);
		// SpringApplication.run(ConfigServerApplication.class, args);
	}
}
